package jtk.project4.fleet.field;


import java.util.List;


import javax.swing.*;
import javax.swing.plaf.SpinnerUI;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.ImageField;
import nl.coderight.jazz.form.field.NumberField;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.button.PushButton;
import nl.coderight.jazz.form.field.SpinnerField;
import nl.coderight.jazz.action.Action;

public class InventoryPhotoField extends GroupControl{
	
	private ImageField photoField;
	private PushButton Add;
	private PushButton Delete;
	private PushButton ViewImage;
	/*private SpinnerField spinnerField;
	private List<Integer> Value;*/
	
	
	
		public InventoryPhotoField(String bindId){
		setTitle(null);
		setBindID(bindId);
		createFields();
		createLayout();
	}

	private void createFields() {
		// TODO Auto-generated method stub
		//Value.subList(0, 300);
		photoField	 	= new ImageField();
		Add	= new PushButton("Add");
		Delete	= new PushButton("Delete");
		ViewImage	= new PushButton("View Image");
		/*spinnerField = new SpinnerField<Integer> ("domains","domain");
		spinnerField.setPreferredSize(new FieldDimension().defaultDimension());
		spinnerField.setEnabled(true);
		
		spinnerField.setListOfValues(Value);
		*/
	}
	
	private void createLayout() {
		// TODO Auto-generated method stub
		setLayout(new FormLayout())
		.addField(photoField)
		.addRow()
		.addField(Add)	.addField(Delete)	.addField(ViewImage) 
		//.addField(spinnerField)
		
		;	
	}
	

}



